#include "writeHeader.hpp"
using namespace std;
using namespace m3g;


/**
 *
 */
unsigned int writeHeader (M3GWriter* writer)
{
	M3GHeaderStruct header;
	header.version_major            = 1;
	header.version_minor            = 0;
	header.authoring_field          = "M3G exporter for Metasequoia";

	unsigned int object_index;

	writer->startObject  (M3G_TYPE_HEADER, &object_index);
	writer->writeHeader  (header);
	writer->endObject    ();

	return object_index;
}
